package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-14
 */
@Data
@Schema(title = "SysUserSaveOrUpdateRequest", description = "用户表新增或修改请求体")
public class SysUserSaveOrUpdateRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 7389802809614053206L;

    /**
     * 用户ID
     */
    @Schema(title = "id", description = "用户ID")
    private Long id;
    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @Schema(title = "loginAccount", description = "用户账号")
    private String loginAccount;
    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空")
    @Schema(title = "username", description = "用户名称")
    private String username;
    /**
     * 密码
     */
    @Schema(title = "password", description = "密码")
    private String password;
    /**
     * 部门id
     */
    @Schema(title = "deptId", description = "部门id")
    private Long deptId;
    /**
     * 头像
     */
    @Schema(title = "avatar", description = "头像")
    private String avatar;
    /**
     * 性别:1=男,2=女,0=保密
     */
    @Schema(title = "gender", description = "性别:1=男,2=女,0=保密")
    private Integer gender;
    /**
     * 年龄
     */
    @Schema(title = "age", description = "年龄")
    private Integer age;
    /**
     * 出生日期
     */
    @Schema(title = "birthday", description = "出生日期")
    private LocalDateTime birthday;
    /**
     * 电话
     */
    @Schema(title = "phone", description = "电话")
    private String phone;
    /**
     * 邮箱
     */
    @Schema(title = "email", description = "邮箱")
    private String email;
    /**
     * 状态:1=启用,0=禁用
     */
    @Schema(title = "status", description = "状态:1=启用,0=禁用")
    private Integer status;
    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
}
